@echo off
echo export
set var_path_unity="C:\Program Files\Unity\Editor\2020.3.26f1\Editor\Unity.exe"
set dir=%~dp0
set var_path_project=%dir%petdiary

echo %var_path_project%
set build_args=keystoreName=user.keystore;keystorePass=gyyxpet;keyaliasName=pet;keyaliasPass=gyyxpet
%var_path_unity% -projectPath %var_path_project% -quit -batchmode -nographics -executeMethod Framework.BuildCommand.BuildProject args=%build_args% -logFile export.log


::复制程序集文件

set dir=%~dp0
set var_path_project=%dir%petdiary
set var_output_project=%var_path_project%\output_project
set var_output_bundle=%var_path_project%\output_bundle
echo %var_output_project%





set to=%var_output_project%\unityLibrary\src\main\assets\assembly
if exist %to% rd /s/q %to%
set from=%var_path_project%\assembly
echo d |xcopy %from% %to% /S /E /Y

exit

